package com.gitee.service.job;

import com.xxl.job.core.handler.annotation.XxlJob;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

/**
 * @author gcq
 * @Create 2022-07-27
 */
@Component
public class DemoXxlJob {

    private Logger logger = LoggerFactory.getLogger(DemoXxlJob.class);

    @XxlJob("timeTaskTest")
    public void timeTask(){
        logger.info("接收到定时任务准备执行");
    }
}